#include <stdio.h> 
#include "2space.h"
#include "path.h"

extern const TwoDOps mathops;
extern const PathCtl pathctl;
extern TwoD Upos;
extern int err;

int main() {

  Path p;
  RectangularPoint start, end;
  int i;

  start.x = 1;
  start.y = 1;
  end.x = 988;
  end.y = 722;

  pathctl.reset(&p);
  pathctl.set_num_verticies(&p, 50);
  pathctl.set_start_rect(&p, &start);
  pathctl.set_end_rect(&p, &end);
  pathctl.make(&p);


  /* print out the path */
  printf("NumVerticies: %d\nerror: %d\n", p.numverts, err);
  for(i=START_VERTEX; i<50; i++ )
    printf("\tX[%d]=%.10lf, Y[%d]=%.10lf\n",
             i, p.x[i], i, p.y[i] );


 return (0);

}
